// 获取数组连续的值 返回二维数组
export function seriesIntArray(arr) {
  let newArr = [], i = 0;
  newArr[i] = [arr[0]];
  arr.reduce(function (prev, cur) {
    cur - prev === 1 ? newArr[i].push(cur) : newArr[++i] = [cur];
    return cur;
  });
  return newArr;
}

